package ba05;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author 飞哥
 * @version V1.0
 * @package ba05
 * @date 2021/7/30 16:21
 */
public class SpringTest05 {
    @Test
    public void test01() {
        ApplicationContext ac = new ClassPathXmlApplicationContext("ba05/Total.xml");
        Student student = (Student) ac.getBean("student01");
        System.out.println("学生信息：" + student);
    }
}
